<?php use_helper("I18N") ?>
<ul role="navigation" class="tabs clearfix" id="settings_nav">
    <?php foreach ($menu as $section => $tabs): ?>
        <?php if ($section == $current_section): ?>
            <?php foreach ($tabs['sub_items'] as $route => $subItem): ?>
                <!-- include those route parameters -->
                <?php $params = array() ?>
                <?php $iParams = isset($subItem["param"]) ? explode('&', $subItem["param"]) : array(); ?>
                <?php foreach ($iParams as $iParam): ?>
                    <?php $params[$iParam] = $itemParams[$iParam] ?>
                <?php endforeach; ?>
                <li <?php echo $route == $current_route ? "class='active'" : "" ?>>
                    <?php echo link_to2(__($subItem["label"]), $route, $params, array()) ?>
                </li>
            <?php endforeach; ?>
        <?php endif; ?>
    <?php endforeach; ?>
</ul>